/*
package com.songshuai.sales.tool.config;

import com.alibaba.druid.support.http.WebStatFilter;
import com.songshuai.webapi.common.datasource.BaseDruidConfiguration;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

*/
/**
 * Created by yubo on 2018/12/11.
 *//*

@Configuration
@EnableTransactionManagement
public class DruidConfiguration extends BaseDruidConfiguration {
    @Bean
    public ServletRegistrationBean statViewServle(){
        return getServletRegistrationBean();
    }



    @Bean
    public FilterRegistrationBean statFilter(){
        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean(new WebStatFilter());
        //添加过滤规则
        filterRegistrationBean.addUrlPatterns("/*");
        //忽略过滤的格式
        filterRegistrationBean.addInitParameter("exclusions","*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*");
        return filterRegistrationBean;
        }
}

*/
